Ext.define('Usws.view.baseDict.BaseDictEdit', {
    extend: 'Ext.window.Window',
    xtype: 'BaseDict-Edit',
    title: '编辑数据字典信息',
    layout: 'fit',
    autoShow: true,
    modal: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
                padding: '10px',
                border: 0,
                items: [
                     { xtype: 'hiddenfield', name:'baseDict.uid', id: 'uid'}
                    ,{ xtype: 'textfield', name:'baseDict.domain', id: 'domain', fieldLabel: '域/组'}
					,{ xtype: 'textfield', name:'baseDict.code', id: 'code', fieldLabel: '代码',allowBlank:false}
					,{ xtype: 'textfield', name:'baseDict.name', id: 'name', fieldLabel: '名称',allowBlank:false}
					,{ xtype: 'numberfield', name:'baseDict.sepId', id: 'sepId', fieldLabel: '域内ID'}
	                ,{ xtype: 'numberfield', name:'baseDict.seqNum', id: 'seqNum', fieldLabel: '排序字段'}
					,{ 
						xtype: 'textareafield',
						name:'baseDict.extraVal',
						id: 'extraVal',
						minWidth:400,
						fieldLabel: '域额外值'
					 }
                ]
            }
        ];

        this.buttons = [
            {
                text: '确定',
                action: 'save'
            },
            {
                text: '取消',
                scope: this,
                handler: this.close
            }
        ];
        
        this.callParent(arguments);
    }
});